package cn.asterly.cicada.service.impl;


import cn.asterly.cicada.model.Sider;
import cn.asterly.cicada.service.ISiderService;
import cn.asterly.cicada.service.base.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class SiderServiceImpl extends BaseServiceImpl<Sider> implements ISiderService {
    public boolean deleteByPrimaryKey(String id) {
        return siderMapper.deleteByPrimaryKey(id)>0;
    }

    public boolean deleteByPrimaryKeys(String[] ids) {
        return siderMapper.deleteByPrimaryKeys(ids);
    }

    public boolean insert(Sider record) {
        return siderMapper.insert(record)>0;
    }

    public boolean insertSelective(Sider record) {
        return siderMapper.insertSelective(record)>0;
    }

    public Sider selectByPrimaryKey(String id) {
        return siderMapper.selectByPrimaryKey(id);
    }

    public boolean updateByPrimaryKeySelective(Sider record) {
        return siderMapper.updateByPrimaryKeySelective(record)>0;
    }

    public boolean updateByPrimaryKey(Sider record) {
        return siderMapper.updateByPrimaryKey(record)>0;
    }

    public List<Sider> selectByAll(int curentPage, int pageSize) {
        return null;
    }

    public List<Sider> selectByAll() {
        return siderMapper.selectByAll();
    }
}
